#pragma once

#include <windows.h>
#include "mymath.h"
#include "Console.h"

#define KEYDOWN(vk_code) ((GetAsyncKeyState(vk_code) & 0x8000) ? 1 : 0)
#define KEYUP(vk_code)   ((GetAsyncKeyState(vk_code) & 0x8000) ? 0 : 1)

#define SAFE_DELETE_ARRAY(p)  { delete [](p); p = NULL; }
#define SAFE_DELETE(p)        { delete (p); p = NULL;  }